package com.xxxy.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author sjh
 * @date 2022/2/5 20:45
 */
@Data
@TableName("es_system_log")
public class OperationLog implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "日志id")
    private Integer id;

    @ApiModelProperty(value = "操作账号")
    private String userAccount;

    @ApiModelProperty(value = "操作身份")
    private Integer userType;

    @ApiModelProperty(value = "功能模块")
    private String module;

    @ApiModelProperty(value = "功能描述")
    private String description;

    @ApiModelProperty(value = "ip地址")
    private String ip;

    @ApiModelProperty(value = "路径地址")
    private String url;

    @ApiModelProperty(value = "请求参数")
    private String params;

    @ApiModelProperty(value = "是否成功(0=不成功,1=成功)")
    private Integer success;

    @ApiModelProperty(value = "操作时间")
    private Date createTime;

}
